<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class UserIntegralLog extends Model
{
    protected $table = 'user_integral_logs';
    protected $fillable = [
        "integral","recoder","checker","is_checked","des"
    ];
    protected $casts = [
        'is_checked' => 'boolean',
        'created_at' => 'datetime:Y-m-d h:i:s',
        'updated_at' => 'datetime:Y-m-d h:i:s',
    ];
    //做表的关联
    public function user(){
        return $this->belongsTo(User::class);
    }
}
